package com.demo.dao;

import com.demo.entity.SaleCommission;
import com.demo.vo.SaleCommissionVo;

import java.util.List;

public interface ISaleCommissionDao {
    int deleteByPrimaryKey(Integer id);

    int insert(SaleCommission record);

    int insertSelective(SaleCommission record);
    int selectCountByOrderId(SaleCommission record);

    SaleCommission selectByPrimaryKey(Integer id);

    /***
     * 获取某一订单ID的销售佣金
     * @param sc
     * @return
     */
    SaleCommission selectOneByOrderId(SaleCommission sc);

    int updateByPrimaryKeySelective(SaleCommission record);

    int updateByPrimaryKey(SaleCommission record);
    List<SaleCommission> queryByPage(SaleCommissionVo user);

    /**
     * 符合统计条件的总数统计
     * @param user
     * @return
     */
    int queryCount(SaleCommissionVo user);
}